package com.cheer.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author cheer
 */
@AllArgsConstructor
public enum OaLearnClassTypeEnum {

    ADMIN(1, "机构"),
    CITY(2, "本科高校"),
    COLLEGE(3, "高职院校"),
    PREFECTURE(4, "区县");

    @Getter
    private Integer code;
    @Getter
    private String message;


    public static boolean isContentSchool(Integer code){

        if(code.equals(OaLearnClassTypeEnum.CITY.getCode())){
            return true;
        }
        if(code.equals(OaLearnClassTypeEnum.COLLEGE.getCode())){
            return true;
        }
        return false;
    }



}
